package com.lanxiao.cloud.modules.file.application.dto;

import com.lanxiao.cloud.common.core.dto.BaseDto;
import com.lanxiao.cloud.common.core.enums.StateEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

/**
 * @author ：qiaoliang
 * @date ：2021-10-25
 */
@ApiModel("文件上传配置返回模型")
public class FileConfigureDto  extends BaseDto<Long>  {
  @ApiModelProperty("上传地址")
  private final String endpoint;
  @ApiModelProperty("秘钥key")
  private final String accessKey;
  @ApiModelProperty("密钥")
  private final String secretKey;
  @ApiModelProperty("空间名")
  private final String bucket;
  @ApiModelProperty("状态")
  private final StateEnum state;

  public FileConfigureDto(Long id, Date createTime, Date updateTime,
      String remark, String endpoint, String accessKey, String secretKey, String bucket,
      StateEnum state) {
    super(id, createTime, updateTime, remark);
    this.endpoint = endpoint;
    this.accessKey = accessKey;
    this.secretKey = secretKey;
    this.bucket = bucket;
    this.state = state;
  }


  public String getEndpoint() {
    return endpoint;
  }

  public String getAccessKey() {
    return accessKey;
  }

  public String getSecretKey() {
    return secretKey;
  }

  public String getBucket() {
    return bucket;
  }

  public StateEnum getState() {
    return state;
  }
}
